#include <bits/stdc++.h>
#define int long long
using namespace std;

void solve(){
	int n, x;
	cin >> n >> x;
	if (2*x >= n) {
		cout << "YES" << '\n';
	} else {
		cout << "NO" << '\n';
	}
}



signed main(){
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	int t;
	cin >> t;
	while(t--){
		solve();
	}
	return 0;
}
